package com.terren.webdig.setting.service;

import java.util.List;

import com.terren.webdig.basic.IBasicServiceSupport;
import com.terren.webdig.setting.entity.Role;
import com.terren.webdig.setting.entity.RoleFunction;


public interface IRoleService extends IBasicServiceSupport{
	/**
	 * 获取角色信息
	 * @param role
	 * @return
	 * @throws Exception
	 */
	List<Role> getRoleList(Role role) throws Exception;
	Role getRoleById(Role role) throws Exception;
	
	Role getRoleByIdAll(Role role) throws Exception;
	
	/**
	 * 判断用户名是否存在
	 * @param role
	 * @return
	 * @throws Exception
	 */
	List<Role> isRepeat(Role role) throws Exception;
	
	String saveRole(Role role) throws Exception;
	
	int saveRoleFunction(List<RoleFunction> list) throws Exception;
	
	String updateRole(Role role) throws Exception;
	
	Object deleteAllRoleFunction(RoleFunction roleFunction) throws Exception;
	
	Integer deleteRole(Role role) throws Exception;
	
	Integer deleteRoleFunction(RoleFunction roleFunction) throws Exception;
}
